#!/usr/bin/python

speed_limit = input("Enter Speed Limit :")
speed = input("Enter the car speed clocked: ")

def main(clocked, limit):
	
	if clocked >= 90:
		amt = penalty(clocked, limit) + 250
		print "Over 90, ticket is: $%s" % amt
	elif clocked > limit:
		amt = penalty(clocked, limit)
		print "Fine amount is $%s :" % amt
	else:
		print "Driving safe baby"

def penalty(laser, board):
		print "Illegal speeding!!!"
		ticket = ((laser - board) * 5) + 50
		return ticket
main(speed, speed_limit)
